<? 

session_start();
if (!(isset($_SESSION['myusername']) && $_SESSION['mypassword'] != '')) {
header ("Location: http://www.group3productions.info/combo/login/main_login.php");
}

// Via require_once laad je de verschillende scripts in
require_once('Local_Settings.php');

require_once('inc/functions/Cart_Templates.php');
require_once('inc/functions/Cart_Functions.php');

require_once('inc/payment_mods/MONEYORDER_Functions.php');
require_once('inc/payment_mods/PAYPAL_Functions.php');
require_once('inc/payment_mods/IDEAL_Functions.php');

// Variabelen
$PayType = cleanvalue($_POST['PayType']);
$Cart_Totals=GetCartTotals($Session_Prefix);

// Als overboeking gekozen is..
if ($PayType=='MoneyOrder')
{
  echo Create_MoneyOrder_Info($Arr_MoneyOrder,$Site_Title,$Site_Domain,$Session_Prefix,$Currency_Symbol,$Currency_Code);
  die;
} 

// Als iDeal gekozen is..
if ($PayType=='iDeal')
{
  echo Create_iDeal_Info($Arr_MoneyOrder,$Site_Title,$Site_Domain,$Session_Prefix,$Currency_Symbol,$Currency_Code);
  die;
} 

// HTML header, hier niet veranderen
Open_Cart_HTML($Site_Script_Root_Directory,$CSS_Filename,$Site_Title.' - Betaling',"

<META NAME='keywords' CONTENT='".$Site_Title." Betaling'>
");

?>
<br>
<table width="100%" border="0" align="center"> 
  <tr> 
    <td valign="top"><div align="center">
<? echo Cart_Menu(3); ?><br />
      <table width='600' border='0'>
        <tr>
          <td><div align='center' class='CartPageInfoBox CartPageInfoBG Bold'>
Om uw order af te ronden, rond aub de betaling af via onderstaande betaalmethode. <br /><br />
            <table width="90%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#FFFF00">
              <tr>
                <td><div align="center">
<?
if ($PayType=='PayPal')
{
  echo Display_PayPal_Button($Arr_PayPal,$Session_Prefix);
}
?><br />

                </div></td>
              </tr>
            </table><br />
          </div></td>
        </tr>
      </table><br />
      <table width="650" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr>
          <td colspan="3"><div class="CartContentsBG CartContentsBox">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div align="center"><span class="TitleTextColor">Bestelling: </span></div></td>
              </tr>
              <tr>
                <td valign="top"><div align="center">
<?
echo DisplayCartWShipping($Session_Prefix,$Currency_Symbol,$Currency_Code);
?><br />
                </div></td>
              </tr>
            </table>
          </div></td>
        </tr>
      </table><br /><br />
    </div></td> 
  </tr> 
</table>
<?

// HTML footer, hier niet veranderen
Close_Cart_HTML($Site_Domain,$Site_Script_Root_Directory);

?>